package com.spc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableConfigServer
public class ConfigServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConfigServerApplication.class, args);
    }
}
// 从配置的git读取数据

/*http请求地址和资源文件映射如下:
        /{application}/{profile}[/{label}]
        /{application}-{profile}.yml
        /{label}/{application}-{profile}.yml
        /{application}-{profile}.properties
        /{label}/{application}-{profile}.properties

spring-cloud-config 文件夹下有
application-dev.properties,application-test.properties 三个文件，
内容依次是：content=hello dev,content=hello test,content=hello pre

请求方式 http://localhost:8888/springCloudConfig/dev/master
http://localhost:8888/springCloudConfig/dev/master
访问 http://localhost:8888/{application}/{profile}/{label}，
比如：http://localhost:8888/dmeo/development/trunk

{application} 匹配客户端的 “spring-cloud-config”
{profile} 匹配客户端的”application-dev.properties”
{label} 如果是svn匹配master等.
        */
